namespace CSharpPro._0916;

public class Phone
{
    //属性

    public string Brand; // 品牌
    public int Weight;   // 重量
    public int Camera;   // 后置摄像头像素
    public decimal Price; // 价格
    //方法
    public Phone(string brand, int weight, int camera, decimal price)
    {
        Brand = brand;
        Weight = weight;
        Camera = camera;
        Price = price;
    }
    public void PrintPhoneInfo()
    {
        Console.WriteLine($"品牌(brand): {Brand}");
        Console.WriteLine($"重量(weight): {Weight}g");
        Console.WriteLine($"后置摄像头像素(camera): {Camera}");
        Console.WriteLine($"价格(price): {Price}");
        
    }
}